package com.tgy.apollo.controller;

import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/***
 * @ClassName: Test
 * @Description:
 * @Auther: 送你一块二向箔
 * @Date: 16:49 2022/4/15
 * @version : V1.0
 */
@RestController
@EnableApolloConfig
public class Test {
    @Value("${test.value}")
    private String testValue;

    @GetMapping("/")
    public String test(){
        return testValue;
    }
}
